package com.chixing.day04_oop;

public class Cpu {
    private int cpuId;
    private String cpuModel;
    private String cpuFactory;

    public Cpu(){}

    public Cpu(int cpuId, String cpuModel, String cpuFactory) {
        this.cpuId = cpuId;
        this.cpuModel = cpuModel;
        this.cpuFactory = cpuFactory;
    }

    public int getCpuId() {
        return cpuId;
    }

    public void setCpuId(int cpuId) {
        this.cpuId = cpuId;
    }

    public String getCpuModel() {
        return cpuModel;
    }

    public void setCpuModel(String cpuModel) {
        this.cpuModel = cpuModel;
    }

    public String getCpuFactory() {
        return cpuFactory;
    }

    public void setCpuFactory(String cpuFactory) {
        this.cpuFactory = cpuFactory;
    }

    @Override
    public String toString() {
        return "Cpu{" +
                "cpuId=" + cpuId +
                ", cpuModel='" + cpuModel + '\'' +
                ", cpuFactory='" + cpuFactory + '\'' +
                '}';
    }
}
